<?php
/*
 * Created on 24/06/2014 by lion
 *
 */
 
require('parsecsv.lib.php');

class CSVHelper 
{
	
	function readCSV($filepath,$key_array=null,$condition=null)
	{
		# create new parseCSV object.
		$csv = new parseCSV(); 
		$csv->conditions = $condition;
		$csv->auto($filepath,$key_array);
		return $csv;
	} 
	
}

?>
